<?php
if(!defined('IN_CORE')) exit('permission deny');

class session {

	public static function init() {
		session_start();
	}
	
	public static function get($name) {
		return $_SESSION[$name];
	}
	
	public static function set($name, $value) {
		$_SESSION[$name] = $value;
	}
	
	public static function del($name) {
		$_SESSION[$name] = NULL;
	}
	
	public static function delAll() {
		$_SESSION = array();
	}
	
	public static function close() {
		session_write_close();
	}
}

?>